package com.pengxun.manager.model.system;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class Company {

	@NotNull(message = "联系人不能为空")
	private String contactBy;
	private String address;
	private Integer companyId;
	@NotNull(message = "联系人手机号不能为空")
	private String mobile;
	private String description;
	private Date updateDate;
	private Long createBy;
	private String companyLogo;
	private String phone;
	@NotNull
	@Size(max=64,message = "公司名称最长64位")
	private String companyName;
	private String companyCode;
	@NotNull
	@Size(max=32,message = "简称最长32位")
	private String shortName;
	@Size(max=64,message = "公司英文名称最长64位")
	private String companyNameEn;
	private Date createDate;
	private Long updateBy;
	@NotNull
	@Pattern(regexp = "^(.+)@(.+)$",message = "邮箱的格式不合法")
	private String email;
	private Integer status;
	private Integer companyType;

	public String getContactBy(){
		return this.contactBy;
	}
	public void setContactBy(String contactBy){
		this.contactBy=contactBy;
	}
	public String getAddress(){
		return this.address;
	}
	public void setAddress(String address){
		this.address=address;
	}
	public Integer getCompanyId(){
		return this.companyId;
	}
	public void setCompanyId(Integer companyId){
		this.companyId=companyId;
	}
	public String getMobile(){
		return this.mobile;
	}
	public void setMobile(String mobile){
		this.mobile=mobile;
	}
	public String getDescription(){
		return this.description;
	}
	public void setDescription(String description){
		this.description=description;
	}
	public Date getUpdateDate(){
		return this.updateDate;
	}
	public void setUpdateDate(Date updateDate){
		this.updateDate=updateDate;
	}
	public Long getCreateBy(){
		return this.createBy;
	}
	public void setCreateBy(Long createBy){
		this.createBy=createBy;
	}
	public String getCompanyLogo(){
		return this.companyLogo;
	}
	public void setCompanyLogo(String companyLogo){
		this.companyLogo=companyLogo;
	}
	public String getPhone(){
		return this.phone;
	}
	public void setPhone(String phone){
		this.phone=phone;
	}
	public String getCompanyName(){
		return this.companyName;
	}
	public void setCompanyName(String companyName){
		this.companyName=companyName;
	}
	public String getCompanyCode(){
		return this.companyCode;
	}
	public void setCompanyCode(String companyCode){
		this.companyCode=companyCode;
	}
	public String getShortName(){
		return this.shortName;
	}
	public void setShortName(String shortName){
		this.shortName=shortName;
	}
	public String getCompanyNameEn(){
		return this.companyNameEn;
	}
	public void setCompanyNameEn(String companyNameEn){
		this.companyNameEn=companyNameEn;
	}
	public Date getCreateDate(){
		return this.createDate;
	}
	public void setCreateDate(Date createDate){
		this.createDate=createDate;
	}
	public Long getUpdateBy(){
		return this.updateBy;
	}
	public void setUpdateBy(Long updateBy){
		this.updateBy=updateBy;
	}
	public String getEmail(){
		return this.email;
	}
	public void setEmail(String email){
		this.email=email;
	}
	public Integer getStatus(){
		return this.status;
	}
	public void setStatus(Integer status){
		this.status=status;
	}

	public Integer getCompanyType() {
		return companyType;
	}

	public void setCompanyType(Integer companyType) {
		this.companyType = companyType;
	}
}